// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import autoFocus from './components/auto-focus'
var bus=new Vue()
const install = function (Vue) {
  if (install.installed) return
  Vue.directive('auto-focus',autoFocus)
}

if (typeof window !== 'undefined' && window.Vue) {
  install(window.Vue)
}
Vue.config.productionTip = false

export {
  install, bus
}
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
